import 'package:flutter/material.dart';

class EgText extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: "文本组件示例",
      home: new Scaffold(
        appBar: new AppBar(
          title: new Text("文本组件示例"),
        ),
        body: new Column(
          children: <Widget>[
            new Text(
              "红色 + 黑色删除线 + 25号字",
              style: new TextStyle(
                  color: const Color(0xffff0000), decoration: TextDecoration.lineThrough, decorationColor: const Color(0xff000000), fontSize: 25.0),
            ),
            new Text(
              "橙色 + 下划线 + 24号字",
              style: new TextStyle(decoration: TextDecoration.underline, color: const Color(0xffff9900), fontSize: 24),
            ),
            new Text(
              "虚上划线 + 23号 + 倾斜",
              style: new TextStyle(
                  decoration: TextDecoration.overline, decorationStyle: TextDecorationStyle.dashed, fontSize: 23, fontStyle: FontStyle.italic),
            ),
            new Text(
              "24号 加粗",
              style: new TextStyle(fontSize: 24, fontStyle: FontStyle.italic, fontWeight: FontWeight.bold, letterSpacing: 6.0),
            )
          ],
        ),
      ),
    );
  }
}
/**
 * Text文本组件
 * 常用的属性：
 * style 更改文本字体的 大小 颜色 粗细 等
 * */
